using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace Tracker.Mobile.Droid.Receivers
{
    [BroadcastReceiver]
    public class LocationUpdate : BroadcastReceiver
    {
        private readonly Action _updateList;

        public LocationUpdate()
        {

        }

        public LocationUpdate(Action updateList)
        {
            _updateList = updateList;
        }

        public override void OnReceive(Context context, Intent intent)
        {
            _updateList();
        }
    }
}